A+ Core 1: Networking

2026-09-20 · a-plus, comptia, class-notes

Data sent across a network is wrapped in layers, like envelopes inside envelopes (

Class notes · Professor Messer, CompTIA A+ 220-1201 Core 1 · Section 2 (objectives 2.1–2.8)

Quick reference: the short version of this section is the Section 2 cheat sheet.

Learning objectives

By the end of these notes you should be able to:

  1. Explain how IP, TCP and UDP work together, and identify common ports (2.1).
  2. Describe wireless frequencies, channels, Bluetooth, RFID and NFC (2.2).
  3. Describe the purpose of common network services (2.3).
  4. Explain DNS records (including SPF, DKIM, DMARC), DHCP, VLANs and VPNs (2.4).
  5. Describe network devices and PoE (2.5).
  6. Explain IPv4 and IPv6 addressing, and static, dynamic and APIPA assignment (2.6).
  7. Compare internet connection types and network types (2.7).
  8. Choose the right network tool for a job (2.8).
  9. Use command-line tools to check addressing, DNS and connectivity.

1. IP, TCP, UDP and ports (2.1)

1.1 How data is packaged

Data sent across a network is wrapped in layers, like envelopes inside envelopes (

encapsulation):

+-----------------------------------------------------------------+ | Ethernet frame (MAC addresses — gets it across the local link) | | +-----------------------------------------------------------+ | | | IP packet (IP addresses — gets it to the right computer) | | | | +-----------------------------------------------------+ | | | | | TCP or UDP segment (ports — gets it to the right app)| | | | | | +-----------------------------------------------+ | | | | | | | Application data (web page, email, DNS query) | | | | | | | +-----------------------------------------------+ | | | | | +-----------------------------------------------------+ | | | +-----------------------------------------------------------+ | +-----------------------------------------------------------------+- IP delivers packets between devices using IP addresses. It doesn't guarantee delivery.

1.2 TCP vs UDP

TCP

UDP

Connection

Connection-oriented: sets up a connection first

Connectionless: just sends

Reliability

Acknowledges data; retransmits losses; keeps order

No acknowledgements or retransmission

Overhead

Higher

Lower — faster

Used for

Web (HTTPS), email, file transfer, SSH, RDP

DNS queries, DHCP, streaming, VoIP, online gaming

The TCP three-way handshake:

Client Server | ---- SYN (let's talk) ----------> | | <--- SYN-ACK (ok, let's talk) --- | | ---- ACK (confirmed) -----------> | | connection established |

1.3 Port numbers

Ports run from 0 to 65,535.

1.4 Common ports (220-1201 list)

Port

Protocol

TCP/UDP

Purpose

Secure?

20, 21

FTP

TCP

File transfer (21 control, 20 data)

No — cleartext

22

SSH

TCP

Encrypted remote shell; also SFTP and SCP

Yes

23

Telnet

TCP

Remote shell

No — cleartext, legacy

25

SMTP

TCP

Sending mail between servers

Plain by default; STARTTLS adds encryption

53

DNS

UDP (TCP for large replies and zone transfers)

Name resolution

—

67, 68

DHCP

UDP

Automatic IP configuration (67 server, 68 client)

—

80

HTTP

TCP

Web

No

110

POP3

TCP

Download mail

No (995 for POP3S)

143

IMAP

TCP

Access mail kept on the server

No (993 for IMAPS)

389

LDAP

TCP/UDP

Directory queries (Active Directory)

No

443

HTTPS

TCP

Web over TLS

Yes

445

SMB

TCP

Windows file and printer sharing

Supports encryption (SMB 3)

636

LDAPS

TCP

LDAP over TLS

Yes

3389

RDP

TCP

Remote Desktop

Encrypted — but a major attack target

Useful extras outside the exam list: 587 (mail submission), 993 (IMAPS), 995 (POP3S), 137–139 (NetBIOS), 161/162 (SNMP), 514 (syslog).

1.5 Worked example — which port?

Scenario

Port(s)

A user can browse http:// sites but not https:// sites

443 is blocked

An admin needs an encrypted command-line session to a Linux server

22 (SSH)

An email client downloads mail and removes it from the server

110 (or 995 secure) — POP3

An email client keeps mail synced on the server across devices

143 (or 993 secure) — IMAP

PCs get no IP address automatically

67/68 (DHCP)

A PC can reach 8.8.8.8 but not google.com

53 (DNS)

Mapping a network drive to \\fileserver\share

445 (SMB)

Test-NetConnection fileserver -Port 445 \

TcpTestSucceeded : True/False

Get-NetTCPConnection -State Listen \

what's listening on this machine

netstat -ano \

all connections, with process IDs

nc -zv fileserver 445 ss -tulpn

2. Wireless networking (2.2)

2.1 Frequencies

Band

Range

Speed

Interference

Channels

2.4 GHz

Longest

Lowest

Highest (microwaves, Bluetooth, neighbours)

Few; only 3 non-overlapping

5 GHz

Medium

Higher

Lower

Many more

6 GHz (Wi-Fi 6E / 7)

Shortest

Highest

Lowest

Lots of clean spectrum

2.2 Channels in 2.4 GHz

Each 20 MHz channel overlaps its neighbours. Only 1, 6 and 11 don't overlap each other:

Ch: 1 2 3 4 5 6 7 8 9 10 11 [=========] [=========] [=========] 1 6 11- Neighbouring access points should use different non-overlapping channels.

2.3 Wi-Fi standards (for reference)

Standard

Name

Bands

802.11n

Wi-Fi 4

2.4 / 5 GHz

802.11ac

Wi-Fi 5

5 GHz

802.11ax

Wi-Fi 6 / 6E

2.4 / 5 GHz (6E adds 6 GHz)

802.11be

Wi-Fi 7

2.4 / 5 / 6 GHz

2.4 Other wireless technologies

Technology

Frequency / range

Use

Bluetooth

2.4 GHz, around 10 m

Personal area network: headsets, keyboards, speakers

RFID

Various frequencies

Tags read by radio: access badges, inventory, toll tags. Passive tags are powered by the reader's signal

NFC

13.56 MHz, a few cm

A subset of RFID: payments, pairing, access control

netsh wlan show interfaces \

SSID, signal %, band, channel, speed

netsh wlan show networks mode=bssid \

nearby networks and their channels

3. Network services (2.3)

Service

What it does

Example

DNS server

Translates names to IP addresses

mail.example.com → 203.0.113.10

DHCP server

Hands out IP configuration automatically

Address, mask, gateway, DNS

File share

Central storage

SMB shares on Windows, NFS on Linux

Print server

Manages print queues and drivers centrally

One queue per printer for the whole office

Mail server

Sends (SMTP) and stores (IMAP/POP3) email

Exchange, Postfix

Syslog

Collects log messages from many devices centrally

Firewall and switch logs into a SIEM

Web server

Serves websites and web applications

IIS, Apache, Nginx

AAA server

Authentication, authorisation and accounting for network access

RADIUS, TACACS+

Spam gateway

Filters email for spam and malware before delivery

Email security appliance or cloud service

All-in-one security appliance (UTM)

Firewall, IPS, content filtering, anti-malware, VPN in one box

Small-office firewall

Load balancer

Spreads requests across servers; removes failed ones

Web server farm

Proxy server

Makes requests on clients' behalf — filtering, caching, logging

Web proxy

SCADA / ICS

Monitors and controls industrial equipment

Power, water, manufacturing

Legacy and embedded systems

Old or single-purpose systems that can't easily be updated

Old OS running a machine tool

IoT devices

Networked smart devices

Cameras, thermostats, sensors

4. Network configuration (2.4)

4.1 DNS and how a name is resolved

PC --(1) "www.example.com?"--> Recursive resolver (ISP or company DNS) | +-(2) root server: "ask .com" +-(3) .com TLD server: "ask example.com's" +-(4) authoritative server: 93.184.215.14 PC <--(5) "93.184.215.14" ------+ (answer cached for its TTL)

The TTL (time to live) controls how long the answer is cached. That's why DNS changes aren't instant, and why ipconfig /flushdns sometimes fixes stale results.

Record

Purpose

Example

A

Name → IPv4 address

www → 93.184.215.14

AAAA

Name → IPv6 address

www → 2606:2800:21f:cb07:6820:80da:af6b:8b2c

CNAME

Alias: one name points to another name

shop → shops.myplatform.com

MX

Mail servers for the domain, with priority

10 mail.example.com

TXT

Free-form text — used for verification and email security

SPF, DKIM, DMARC

4.2 Email authentication records

Record

Answers

Lives at

SPF

Which servers may send mail for this domain?

TXT on the domain itself

DKIM

Is this message's signature valid? (Publishes the public key)

TXT at ._domainkey.

DMARC

What should receivers do if SPF/DKIM fail — and where to report?

TXT at _dmarc.

Worked example — reading the records:

example.com. TXT "v=spf1 include:spf.protection.outlook.com -all" _dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"- SPF: Microsoft 365's servers may send for example.com. -all means hard fail — every other sender is unauthorised. (~all would be a soft fail.)

nslookup -type=txt example.com nslookup -type=txt _dmarc.example.com Resolve-DnsName example.com -Type MX

4.3 DHCP

DORA:

Client DHCP server | --- DISCOVER (broadcast: any DHCP?) ---> | | <-- OFFER (you can have .50) -------- | | --- REQUEST (I'll take .50) ----------> | | <-- ACK (it's yours for 8 hours) -- |

Term

Meaning

Scope

The range of addresses the server can hand out, plus options

Pool

The available addresses within the scope

Exclusion

Addresses inside the scope that are never handed out (e.g. for static devices)

Reservation

A specific address always given to a specific MAC address

Lease

How long the client may keep its address; it tries to renew at 50 % of the lease

Options

Extra settings sent to clients: default gateway, DNS servers, domain name

Worked example — designing a small office scope:

  1. Network: 192.168.10.0/24 (usable addresses 1–254).
  2. Router (gateway): 192.168.10.1, static.
  3. Servers and printers: statically set in .2–.19, so exclude .1–.19.
  4. Scope: .20–.240 for clients. The printer at .15 could instead get a reservation tied to its MAC address.
  5. Options: gateway 192.168.10.1; DNS 192.168.10.2; lease 8 hours.

ipconfig /all \

DHCP enabled?, DHCP server, lease obtained/expires

ipconfig /release ipconfig /renew

4.4 VLANs

A VLAN (virtual LAN) splits one physical switch into several separate logical networks — separate broadcast domains. Devices in different VLANs can't talk directly; traffic between them must go through a router or layer 3 switch, where it can be filtered.

        One managed switch

+---------------------------------------------+ | VLAN 10 Staff | VLAN 20 Guests | VLAN 30 IoT | | PC PC PC | Laptop Phone | Cam Cam | +---------------------------------------------+ \ | / +---- Router / firewall ----+ (controls traffic between VLANs)

4.5 VPNs

A VPN (virtual private network) creates an encrypted tunnel across an untrusted network such as the internet.

Type

Connects

Example

Client-to-site (remote access)

One user's device to the organisation's network

A remote worker's VPN client connects to the office firewall or VPN concentrator

Site-to-site

Two networks permanently

Head office ↔ branch office, between firewalls

5. Network devices (2.5)

5.1 The devices

Device

Works with

Behaviour

Router

IP addresses (layer 3)

Forwards traffic between networks; connects the LAN to the internet. Home routers add NAT, DHCP, Wi-Fi and a firewall

Unmanaged switch

MAC addresses (layer 2)

Plug and play. Learns which MAC is on which port and forwards frames only there; no configuration

Managed switch

MAC (layer 2) and sometimes IP

Configurable: VLANs, port settings, QoS, port mirroring, monitoring

Access point

Layer 2

Bridges wireless clients onto the wired network

Patch panel

—

Cable runs punched down at the back; short patch cables at the front connect to switches

Firewall

Layer 3–7

Allows or blocks traffic by rules (IP, port, application)

Cable modem

—

Connects to the ISP over coax (DOCSIS)

DSL modem

—

Connects to the ISP over the telephone line

ONT

—

Optical network terminal: converts the ISP's fibre to Ethernet

NIC

Layer 2

The device's network interface; each has a unique MAC address

Worked example — how a switch learns:

  1. PC A (port 1) sends a frame to PC B. The switch records "MAC A is on port 1".
  2. It doesn't yet know where MAC B is, so it floods the frame to all ports.
  3. PC B replies from port 5. The switch records "MAC B is on port 5".
  4. From now on, frames between A and B go only to ports 1 and 5.

(A hub, by contrast, always repeats everything to every port.)

5.2 Power over Ethernet

PoE sends power and data over one Ethernet cable — ideal for access points, IP phones and cameras mounted where there's no power socket.

Standard

Name

Max power per port

802.3af

PoE

15.4 W

802.3at

PoE+

30 W

802.3bt

PoE++ (Type 3 / Type 4)

60 W / 100 W

Power can come from a PoE switch or a PoE injector placed between a normal switch and the device.

6. IP addressing (2.6)

6.1 IPv4

An IPv4 address is 32 bits, written as four octets (0–255): 192.168.1.50.

The subnet mask shows which part identifies the network and which identifies the host:

Notation

Mask

Network part

Host part

/8

255.0.0.0

First octet

Last three octets

/16

255.255.0.0

First two octets

Last two octets

/24

255.255.255.0

First three octets

Last octet

Worked example — 192.168.1.50 /24:

Item

Value

Network address

192.168.1.0

Usable host range

192.168.1.1 – 192.168.1.254 (254 hosts)

Broadcast address

192.168.1.255

This host

.50

Two devices can talk directly only if they're on the same network. Otherwise traffic goes to the default gateway (the router), usually .1.

6.2 Public, private and special addresses

Range

Type

10.0.0.0/8

Private

172.16.0.0/12 (172.16.x.x – 172.31.x.x)

Private

192.168.0.0/16

Private

169.254.0.0/16

APIPA / link-local — self-assigned when DHCP fails

127.0.0.1

Loopback ("this computer")

Everything else (mostly)

Public — routable on the internet

Private addresses aren't routed on the internet. NAT on the router translates them to the router's public IP for outbound traffic.

6.3 IPv6

Worked example — shortening:

  1. Start: 2001:0db8:0000:0000:0000:ff00:0042:8329
  2. Drop leading zeros: 2001:db8:0:0:0:ff00:42:8329
  3. Collapse the zero run: 2001:db8::ff00:42:8329

6.4 Assigning addresses

Method

How

Best for

Static

Manually set IP, subnet mask, default gateway and DNS servers

Servers, printers, network devices

Dynamic (DHCP)

Automatically leased from a DHCP server

Client PCs, phones, laptops

DHCP reservation

DHCP always gives the same IP to a given MAC

Printers that need a fixed address but central management

APIPA

The OS gives itself 169.254.x.x when no DHCP server answers

A symptom, not a solution — it only reaches the local segment, with no gateway

Worked example — an APIPA ticket:

  1. A user has "no internet"; ipconfig shows 169.254.23.7, so DHCP failed.
  2. Check the physical connection: cable and port lights, or Wi-Fi association.
  3. Retry DHCP: ipconfig /release then ipconfig /renew.
  4. Still APIPA? Check whether others are affected (DHCP server down or scope exhausted), and check the switch port or VLAN.
  5. Record the cause in the ticket — e.g. "scope full; extended scope; lease shortened".

Setting a static address:

Get-NetIPConfiguration New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.10.15 -PrefixLength 24 -DefaultGateway 192.168.10.1 Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 192.168.10.2

7. Connection types and network types (2.7)

7.1 Internet connection types

Type

Medium

Traits

Fibre

Light through glass; ONT at the premises

Fastest; symmetric options; low latency

Cable

Coax (DOCSIS)

Fast; bandwidth shared with the neighbourhood

DSL

Telephone line

Slower; download faster than upload; slows with distance from the exchange

Satellite

Radio to satellites

Geostationary: high latency. Low-earth-orbit constellations: much lower latency

Cellular

4G/5G

Mobile routers and hotspots; good backup links

WISP

Fixed wireless to a tower

Rural areas; needs line of sight

7.2 Network types

Type

Scale

Example

PAN

Personal — around one person

Bluetooth headset and phone

LAN

A building or site

Office network

WLAN

Wireless LAN

Office Wi-Fi

WAN

Connects distant sites

Offices linked across the country; the internet

SAN

Dedicated high-speed storage network

Servers accessing shared block storage

8. Network tools (2.8)

Tool

Use

Scenario

Crimper

Attaches RJ45 connectors to cable

Making a patch cable

Cable stripper

Removes the outer jacket cleanly

Preparing cable for crimping or punching down

Cable tester

Checks continuity and correct pin-out

"Is this new cable wired right?"

Punch-down tool

Seats wires into patch panels and keystone jacks

Terminating a wall-port cable run

Tone generator and probe

Traces a cable to its other end

"Which patch panel port goes to desk 14?"

Loopback plug

Loops a port's transmit back into its receive

Testing a NIC or switch port

Wi-Fi analyzer

Shows networks, channels, signal and interference

Choosing the least congested channel

Network tap

Copies traffic passing through a link

Feeding a monitoring or IDS system

9. Security perspective

Summary

Glossary

Term

Definition

Encapsulation

Wrapping data in successive protocol headers

IP address

A logical address identifying a device on a network

Port

A number identifying an application or service on a host

TCP / UDP

Reliable connection-oriented / fast connectionless transport

Three-way handshake

SYN, SYN-ACK, ACK — how TCP opens a connection

Ephemeral port

A temporary high-numbered client port

Non-overlapping channels

2.4 GHz channels 1, 6 and 11

RFID / NFC

Radio tags / very short-range wireless communication

DNS

Translates names to IP addresses

TTL

Time to live — how long a DNS answer is cached

SPF / DKIM / DMARC

Email sender authorisation / signing / policy and reporting

DHCP / DORA

Automatic IP configuration / Discover, Offer, Request, Acknowledge

Scope / reservation / exclusion

DHCP range / fixed MAC-to-IP mapping / addresses kept out of the pool

VLAN

A logical network separated on shared switch hardware

VPN

An encrypted tunnel over an untrusted network

Router / switch

Forwards between networks by IP / within a network by MAC

PoE

Power over Ethernet

ONT

Optical network terminal

Subnet mask / CIDR

Network/host split, e.g. 255.255.255.0 = /24

APIPA

Self-assigned 169.254.x.x address when DHCP fails

NAT

Translates private addresses to a public address

Link-local (IPv6)

An fe80:: address valid only on the local link

Review questions

  1. Which transport protocol would you expect a video call to use, and why?
  2. What are the three steps of the TCP handshake?
  3. A user can reach websites by IP address but not by name. Which service is failing, and on which port?
  4. Which port does LDAPS use?
  5. Why should 2.4 GHz access points use channels 1, 6 and 11?
  6. What does an MX record do?
  7. Interpret v=spf1 include:_spf.google.com ~all.
  8. Put the DHCP process in order, and name the ports used.
  9. What's the difference between a DHCP reservation and an exclusion?
  10. A PC shows 169.254.10.4. What does that mean?
  11. For 10.20.30.40/24, what are the network and broadcast addresses?
  12. Shorten fe80:0000:0000:0000:0204:61ff:fe9d:f156.
  13. Which device do you need to find which wall port a cable in the comms room goes to?
  14. What's the difference between client-to-site and site-to-site VPNs?

Answer key

  1. UDP — low latency matters more than retransmitting lost packets, which would arrive too late anyway.
  2. SYN → SYN-ACK → ACK.
  3. DNS, port 53.
  4. 636.
  5. They're the only non-overlapping 20 MHz channels, so neighbouring APs don't interfere.
  6. It lists the mail servers that accept email for a domain, with priorities.
  7. Google's mail servers may send for the domain; mail from other servers is a soft fail (~all), usually marked rather than rejected.
  8. Discover → Offer → Request → Acknowledge; UDP 67 (server) and 68 (client).
  9. A reservation always gives a specific IP to a specific MAC; an exclusion keeps addresses out of the pool entirely (e.g. for static devices).
  10. APIPA — the PC couldn't reach a DHCP server and gave itself a link-local address. It has no internet or routed access.
  11. Network 10.20.30.0, broadcast 10.20.30.255 (usable hosts .1–.254).
  12. fe80::204:61ff:fe9d:f156.
  13. A tone generator and probe.
  14. Client-to-site connects one user's device to a network; site-to-site permanently links two networks.